Recursive Implementation
Recursion offers a more elegant and often more intuitive way to express tree operations. The function's logic is applied to a single node, and then it calls itself for the node's children, naturally handling the tree's nested structure.